package com.syh.jn.scm.domain.supplier.repository.stock;

import com.syh.core.ddd.infrastructure.repository.AggregateRepository;
import com.syh.jn.scm.domain.supplier.entity.stock.StockSpill;
import com.syh.jn.scm.dto.supplier.stock.StockSpillItemVo;

import java.util.List;

public interface StockSpillRepository extends StockSpillReadRepository,AggregateRepository<StockSpill,Long> {
  /**
   * 确认报溢单
   * @param overflow
   */
  void updateStatus(StockSpill overflow);

  /**
   * 根据报损单id获取报损单明细
   * @param id
   * @return
   */
  List<StockSpillItemVo> getItemVosById(Long id);

  /**
   * 根据服务商id删除报溢单
   * @param businessEntityId
   */
  void deleteByBusinessEntityId(Long businessEntityId);

}
